<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 创建默认用户
        App\Models\User::firstOrCreate(
            ['mobile' => '1311111111', 'password' => sha1('123456')]);
        App\Models\Department::firstOrCreate(
            ['name' => '根目录']);
    }
}
